{include file="user.header.html"}
<div id="main" class="clearfix"> {include file="user.menu.html"}
  <div id="right"> {include file="user.curlocal.html"}
    <div class="wrapful">{include file="user.submenu.html"}
      <div class="wrap">
        <div class="public_select table">
          <div class="promotool">
            <div class="bundle bundle-list"> 
              <!--{if $tooldisabled}-->
              <div class="notice-word">
                <p>{$tooldisabled}</p>
              </div>
              <!--{else}-->
              <div class="notice-word">
                <p class="yellow-big">{$lang.note_for_create}</p>
              </div>
              <table>
                <tr class="line_bold">
                  <th colspan="9"> <div class="search_div clearfix">
                      <form method="get" class="clearfix">
                        <div class="float-left">
                          <label>{$lang.limitbuy_name}{$lang.colon}</label>
                          <input type="text" name="title" value="{$smarty.get.title|escape}"/>
                          <input type="submit" class="btn" value="{$lang.search}" />
                        </div>
                        <!--{if $filtered}--> 
                        <a class="detlink" href="{url route='seller_limitbuy/index'}">{$lang.cancel_query}</a> 
                        <!--{/if}-->
                      </form>
                    </div>
                  </th>
                </tr>
                <tr class="sep-row" height="20">
                  <td colspan="9"></td>
                </tr>
                <!--{if $limitbuys}-->
                <tr class="gray">
                  <th width="50">{$lang.goods_image}</th>
                  <th width="140">{$lang.goods_name}</th>
                  <th width="60"><span>{$lang.limitbuy_name}</span></th>
                  <th width="100"><span>{$lang.start_time}</span></th>
                  <th width="100"><span>{$lang.end_time}</span></th>
                  <th width="80"><span>{$lang.price}</span></th>
                  <th width="80"><span>{$lang.limitbuy_price}</span></th>
                  <th ><span>{$lang.status}</span></th>
                  <th width="100"><span>{$lang.handle}</span></th>
                </tr>
                <!--{/if}--> 
                <!--{foreach from=$limitbuys item=limitbuy name=fe_limitbuy}-->
                <tr class="line {if $smarty.foreach.fe_limitbuy.last}last_line{/if}">
                  <td width="50" class="align2"><a href="{url route='goods/index' id=$limitbuy.goods_id}" target="_blank"><img src="{$limitbuy.default_image|url_format}" width="50" height="50"  /></a></td>
                  <td width="140"><a href="{url route='goods/index' id=$limitbuy.goods_id}" target="_blank">{$limitbuy.goods_name|escape|truncate:30}</a></td>
                  <td width="60" align="align2"><a target="_blank" href="{url route='goods/index' id=$limitbuy.goods_id}">{$limitbuy.title|escape}</a></td>
                  <td width="100" class="align2">{$limitbuy.start_time|date_format:"%Y.%m.%d %H:%M:%S"}</td>
                  <td width="100" class="align2">{$limitbuy.end_time|date_format:"%Y.%m.%d %H:%M:%S"}</td>
                  <td width="80" class="align2">{$limitbuy.price}</td>
                  <td width="80" class="align2">{$limitbuy.pro_price}</td>
                  <td width="80" class="align2">{$limitbuy.status_label}</td>
                  <td width="100" class="align2 last"><div class="btn"><a class="mr5" style="border:1px #f60 solid; border-radius:4px; padding:3px 5px; background:#fff; color:#f60;" href="{url route='seller_limitbuy/edit' id=$limitbuy.id}">{$lang.edit}</a><a class="ml5" href="{url route='seller_limitbuy/delete' id=$limitbuy.id}" style="border:1px #19ACF7 solid; border-radius:4px; padding:3px 5px; background:#fff; color:#19ACF7;" >{$lang.drop}</a> </div></td>
                </tr>
                <!--{foreachelse}-->
                <tr>
                  <td class="align2" colspan="9"><div class="notice-word">
                      <p>{$lang.no_records}</p>
                    </div></td>
                </tr>
                <!--{/foreach}--> 
                <!--{if $limitbuys}-->
                <tr class="line_bold line_bold_bottom">
                  <td colspan="9"></td>
                </tr>
                <tr>
                  <th colspan="9"> <div class="position2 clearfix center">{include file="page.bottom.html"}</div>
                  </th>
                </tr>
                <!--{/if}-->
              </table>
              <!--{/if}--> 
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{include file="user.footer.html"}